home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
oper_sys
/
fp
/
ifp_unix.lzh
/
ifp
/
fproot
/
demo
/
Merge
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1986-10-03
|
327 b
|
19 lines
(*
* Merge
*
* Merge two ascending sequences.
*
* The sequences should not mix strings and numbers.
*
* Example:
*
* <<a b x z> <c d z>> : Merge -> <a b c d x y z>
*)
DEF Merge AS
IF EACH null END | or THEN cat
ELSE
IF EACH 1 END | > THEN reverse ELSE id END |
[1|1,[1|tl,2]|Merge] | apndl
END;